package com.hbisdt.cet.sample.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

/**
 * @Description
 * @Author Jiam
 * @Date 2025-03-27 10:55
 */
@Configuration
@Profile(value = "prod")
public class ProdDBConnector implements DBConnector {
    @Override
    public void configure() {
        System.out.println("生产环境数据库配置：使用高可用MySQL集群");
        System.out.println("连接URL: jdbc:mysql://prod-db-cluster.hbisdt.com:3306/proddb");
        System.out.println("用户名: prod_user");
        System.out.println("密码: ********");
        System.out.println("连接池大小: 100");
        System.out.println("读写分离: true");
        System.out.println("SSL加密: true");
        System.out.println("备份策略: 每日全量备份+binlog");
    }
}
